<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <table border="1" width="60%" cellspacing="0">
        <thead>
        <tr><th>姓名</th><th>生日</th><th>电话</th><th>操作</th></tr>
        </thead>
        <tbody>
        <tr th:each="l:${linkObj.list}">
            <td th:text="${l.name}"></td>
            <td th:text="${l.birthday}"></td>
            <td th:text="${l.phone}"></td>
            <td><a th:href="@{/link/del(id=${l.id})}">删除</a>
                <a th:href="@{/link/findById(id=${l.id})}">修改</a>
            </td>
        </tr>
        </tbody>
    </table>
    <div>
        <a style="margin-left: 10px" th:each="pg:${#numbers.sequence(1,linkObj.pages)}"
           th:text="${pg}+'页'" th:href="@{/link/findAll(pageNo=${pg})}"></a>
    </div>
    <a href="/html/addLink.html">添加</a>
</body>
</html>